
#include "stdlib.h"
#include "stdio.h"
#include "string.h"

//结构体的定义
typedef struct _Teacher
{
	char name[62];
	char c;
	int age;
}Teacher ;


Teacher *creatTArray(int num)
{
	Teacher *tArray = NULL;
	tArray = (Teacher *)malloc(num * sizeof(Teacher));
	if (tArray == NULL)
	{
		return NULL;
	}
	return tArray;
}

void main()
{

	int ret = 0;

	Teacher *pArray = NULL;
	pArray = creatTArray( 3);
	if (pArray == NULL)
	{
        printf("creatTArray() error");
		return ;
	}

}
